<include file="Public/Header" />
<link type="text/css" rel="stylesheet" href="__CSS__/jquery-tag.css" />
<script src="__PUBLIC__/Manage/js/jquery.form.min.js"></script>
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31">
			<div class="titlebt">
				通币赠送
			</div>
		</td>
      </tr>
    </table>

<div class="main">

	<div class="form">
		<form method='post' id="form_do" name="form_do" action="{:U('Finance/TbTransfer')}">
			<dl>
				<dt> <span class="red">* </span>转出帐号：</dt>
				<dd>
					<span type="text" class="inp_one" style="border: none;">zytgf</span>
				</dd>
			</dl>
			<dl>
				<dt> <span class="red">* </span>转入帐号：</dt>
				<dd>
					<input type="text" name="name" class="inp_one" id="name" placeholder="请填写转入帐号" />
				</dd>
			</dl>
			<dl>
				<dt> <span class="red">* </span>赠送金额：</dt>
				<dd>
					<input type="text" name="number" class="inp_one" id="number" placeholder="请填写转账金额小数不能多于2位" />
				</dd>
			</dl>
			<dl>
				<dt>备注：</dt>
				<dd>
					<textarea name="remark" cols="50" rows="5" placeholder="这里可以输入备注信息"></textarea>
				</dd>
			</dl>
			<div class="form_b">
				<input type="hidden" name="hash" value="{$hash}" />
				<input type="submit" class="btn_blue" id="releaseBtn" value="确认赠送">
			</div>
	   </form>
	</div>
</div>
<include file="Public/Copyright" />
<script type="text/javascript" src="__SCRIPT__/jquery-tag-select.js"></script>
<script type="text/javascript">
	$('#releaseBtn').click(function(){
		var number = parseFloat($.trim($('#number').val()));
		if(! window.confirm('您确认要赠送'+number+'个通币吗？')){
			return false;
		}
	});
	jQuery.validator.addMethod("ckprice",function(value,element){var price=/^\d+$|^\d+\.\d{1,2}$/;return this.optional(element)||(price.test(value))},$.validator.format("赠送金额小数不得多于2位"));$("#form_do").validate({rules:{name:{required:true,remote:{type:'POST',url:"{:U('Finance/TbTransfer_checkname')}",data:{user_name:function(){return $("#name").val()}}}},number:{required:true,min:0,ckprice:true}},messages:{name:{required:"请输入赠送帐号",remote:"赠送帐号不存在"},number:{required:"请输入赠送金额",min:"赠送金额不能小于0"}}})
</script>
</body>
</html>
